package com.weita.lightfood.model.dao;


import com.weita.lightfood.model.entity.Label;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author IT_Monster at 2019/04/25 18:52.
 * 标签数据库访问
 */
@Mapper
@Repository
public interface LabelDao {
    /**
     * 获取所有标签
     * @return
     * @throws Exception
     */
    List<Label> getAll() throws Exception;
    /**
     * 通过标签名获取标签id
     * @param name
     * @return
     * @throws Exception
     */
    int getLabelIdByName(String name) throws Exception;
}
